package com.zq.zqplayer.mvp.main.ui

import com.ziq.base.manager.RetrofitManager
import com.zq.zqplayer.common.Constants
import com.zq.zqplayer.http.service.VideoService
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
class RecommendModule {

    @Provides
    fun provideRetrofitManager(retrofitManager : RetrofitManager): VideoService {
        return retrofitManager.getRetrofit(Constants.baseUrl)!!.create(VideoService::class.java)
    }

}